package datatypes.film;

public class filmGenre {
	private String name;
	private String id;
	private String films;

	public filmGenre(String name, String id, String films) {
		this.name = name;
		this.id = id;
		this.films = films;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getFilms_in_this_genre() {
		return films;
	}

	public void setFilms_in_this_genre(String films) {
		this.films = films;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();

		if (id != null && id.length() > 0) {
			sb.append("genre id: " + id + "\n");
		}

		if (name != null && name.length() > 0) {
			sb.append("genre name: " + name + "\n");
		}

		if (films != null && films.length() > 0) {
			sb.append("genre films: " + films + "\n");
		}

		return sb.toString();
	}
}
